﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Channels;
namespace BranchOfSansar.Sansar.Report
{
    public partial class ReportClient
    {
        private OperationContextScope scope = null;
        public ReportClient(Token token)
            : this()
        {
            scope = new OperationContextScope(this.InnerChannel);
            MessageHeader hdr = MessageHeader.CreateHeader("eToken", token.Value, "Sansar");
            OperationContext.Current.OutgoingMessageHeaders.Add(hdr);
        }
    }
}